﻿using System.Threading.Tasks;
using Loong.Dapper.DbAccessors;

namespace Loong.BackgroundJobs
{
    public interface IBackgroundJobDbAccessor : IDapperDbAccessor<BackgroundJobInfo, long>
    {
        Task<BackgroundJobInfo> GetWaitingJobAsync();
        Task<bool> LockJobAsync(BackgroundJobInfo jobInfo);
    }
}
